<%@page import="java.io.Writer"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  
<%@page import="java.util.List"%>
<%@page import="gamble.notice.vo.BoardVO"%>
<%@page import="gamble.notice.vo.PageVO"%>
<%@page import="javax.servlet.http.HttpServletRequest"%>

 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js 
"></script>
 <script type="text/javascript">

function notice(){
	
	$('.b1').css ({"visibility":"hidden"});
	$('.b2').css ({"visibility":"hidden"});
	$('.b3').css ({"visibility":"hidden"});
	$('.b4').css ({"visibility":"visible"});
	$(document).ready(function(){
		$(".admin").bind("click",function(){
			$('.b1').css ({"visibility":"visible"});
			$('.b2').css ({"visibility":"visible"});
			$('.b3').css ({"visibility":"visible"});
			$('.b4').css ({"visibility":"visible"});
		 });
		
	});
				
			
}
 </script>

<title>공지 보기 </title>

</head>
<body onLoad="javascript:notice();">
 <table>
<tr><td align="center"><input type="button" class="admin" value="관리자" bgcolor="red"></td></tr>
</table>

   <table border="1" width="750" align="center"  bgcolor="white" bordercolor="#13333" style="border-collapse: collapse;">
        <hr border="10">
        <tr >
   
         <th bgcolor="yellow" width="130">조회수</th>
         
         <td width="620"><font color="red">&nbsp; ${vo.readcount}</font></td>
        </tr>
        
       <tr>
         <th bgcolor="yellow">글쓴이</th>
         <td><font color="red">&nbsp; ${vo.writer}</font></td>
       </tr>       
       
       <tr>
         <th bgcolor="yellow">이메일</th>
         <td><font color="fff">&nbsp; ${vo.email}</font></td>
       </tr>
       
       <tr>
         <th bgcolor="yellow">제목</th>
         <td><font color="white">&nbsp; ${vo.subject}</font></td>
       </tr>
       
       <tr>
        <th bgcolor="yellow">내용</th>
        <td height="200"><font color="fff">&nbsp; ${vo.content}</font></td>
       </tr> 
       
       <tr>
       <th bgcolor="yellow" >첨부파일</th>
       <td>
               
       <a href="fileDown.htm?num=${vo.num }"><font color="red">&nbsp;${vo.upload2}</font></a>
      
       </td>
       </tr>      
   </table><br/>

   <table width="100" id="admin">
  <tr>
   <td>
  
   <form name="frm" action="replay.htm" method="post">
     <input type="hidden" name="currentPage" value="${pv.currentPage}"/>
     <input type="hidden" name="num" value="${vo.num}"/>
     <input type="hidden" name="ref" value="${vo.ref}"/>
     <input type="hidden" name="re_step" value="${vo.re_step}"/>
     <input type="hidden" name="re_level" value="${vo.re_level}"/>
     <input type="hidden" name="subject" value="${vo.subject}"/>
     <input type="submit" value="답변" id="btn1" class="b1"/>
   </form>
   </td>
   <td>
   <form name="frm2" action="update.htm" method="post">
     <input type="hidden" name="currentPage" value="${pv.currentPage}"/>
     <input type="hidden" name="num" value="${vo.num}" />
     <input type="submit" value="수정" id="btn2" class="b2"/>
   </form>
   </td>
   
   <td>
   <form name="frm3" action="delete.htm" method="post">
     <input type="hidden" name="currentPage" value="${pv.currentPage}"/>
     <input type="hidden" name="num" value="${vo.num}" />
     <input type="submit" value="삭제" id="btn3" class="b3"/>
   </form>
   </td>
   <td colspan="270"></td>

   <td>
 <form name="frm4" action="list.htm" method="post">
  <input type="submit" value="리스트" id="list" class="b4"/>
 </form>
    </td>
   </tr>
  </table>

</body>
</html>




